<?php if(isset($title)) : ?>
<div class="span12">
  <h1 class="lonex-breadcrumb"><p><?php print $cat_title; ?> / <?php print $mod_title; ?></p></h1>
</div>

<div class="span3">
  <footer class="clearfix order-pan">
    <h4 class="pull-left"><?php print t('Цена') . ': '; ?><?php print $price . t(' руб.'); ?></h4>
    <a href="#get_order" role="button" class="btn btn-primary pull-right" data-toggle="modal"><?php print t('Заказать'); ?></a>
  </footer>

  <?php print $params; ?>

  <div id="get_order" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="get_orderLabel" aria-hidden="true">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
      <h3 id="get_order_label"><?php print t('Заказать'); ?></h3>
    </div>

    <?php
    $form = drupal_get_form('lonex_get_order_form');
    $form['order']['category']['#value'] = $cat_title;
    $form['order']['model']['#value'] = $mod_title;

    print render($form);
    ?>

  </div>

  <div id="confirm_order" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="get_orderLabel" aria-hidden="true">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
      <h3 id="confirm_order_label"><?php print t('Спасибо'); ?></h3>
    </div>
    <div class="modal-body">
      <?php print t('Ваш заказ принят.') . '<br>' . t('В плижайшее время с вами свяжуться.') . '<br>'; ?>
    </div>

    <div class="modal-footer">
      <button class="btn" data-dismiss="modal" aria-hidden="true"><?php print t('Закрыть'); ?></button>
    </div>
  </div>

</div>
<?php endif; ?>